import { defineStore } from "pinia";
import { getCityAll } from "../../services/modules/cityRequest";
// city 数据管理
export default defineStore("city", {
    // 数据
    state: () => ({
        allCities: {},
        currentCity: { cityName: "福州" }
    }),
    // 操作
    actions: {
        async fetchAllCitiesData() {
            const res = await getCityAll()
            this.allCities = res.data
        }
    }
})